#FROM  python:3.11-alpine
FROM ubuntu:22.04
# install app dependencies
RUN apt-get update && apt-get install -y python3 python3-pip
#WORKDIR /app
COPY  app  /app
COPY  *    /
RUN  pip install   -r  requirements.txt -i https://repo.huaweicloud.com/repository/pypi/simple
#ENV FLASK_APP=run
EXPOSE 5000
CMD ["python3", "run.py", "--host", "0.0.0.0", "--port", "5000"]

#ENTRYPOINT [ "python","run.py","--host","0.0.0.0"]
